
package com.shop.cloud.mall.admin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cloud.common.core.util.R;
import com.shop.cloud.mall.common.entity.SupplierGoodsSpu;

import java.util.List;

/**
 * 供应商spu表
 *
 * @author
 * @date 2024-11-06 10:08:57
 */
public interface SupplierGoodsSpuService extends IService<SupplierGoodsSpu> {

    IPage<SupplierGoodsSpu> page1(IPage<SupplierGoodsSpu> page, SupplierGoodsSpu supplierGoodsSpu);

    SupplierGoodsSpu getById1(String id);

    boolean save1(SupplierGoodsSpu supplierGoodsSpu);

    /**
     * 批量新增
     * @param listSupplierGoodsSpu
     * @return
     */
    R saveBatch1(List<SupplierGoodsSpu> listSupplierGoodsSpu);

    boolean updateById1(SupplierGoodsSpu supplierGoodsSpu);

    /**
     * 上下架
     * @param shelf
     */
    void shelf(String shelf, String ids);
}
